package com.example.hfSystem.entity.pojo;


import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 汉服论坛表
 * </p>
 *
 * @since 2024-04-09
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("forum")
@ApiModel(value = "Forum对象", description = "汉服论坛表")
public class Forum implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("帖子标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("帖子内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("父节点id")
    @TableField("parentid")
    private Long parentid;

    @ApiModelProperty("用户id")
    @TableField("userid")
    private Long userid;

    @ApiModelProperty("用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty("头像")
    @TableField("avatarurl")
    private String avatarurl;

    @ApiModelProperty("状态")
    @TableField("isdone")
    private String isdone;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;

    @TableField(exist = false)
    private List<Forum> childs;
}
